Key Indicators Dashboard (KID)Key Indicators Dashboard (KID) — Comprehensive Market & Trend Metrics 
 📌 Overview 
The Key Indicators Dashboard (KID) is an advanced multi-metric market analysis tool designed to consolidate essential technical, volatility, and relative performance data into a single on-chart table. Instead of switching between multiple indicators, KID centralizes these key measures, making it easier to assess a stock’s technical health, volatility state, trend status, and relative strength at a glance.
 🛠 Key Features 
⦿ Average Daily Range (ADR %): Measures average daily price movement over a specified period. It is calculated by averaging the daily price range (high - low) over a set number of days (default 20 days).
⦿ Average True Range (ATR): Measures volatility by calculating the average of a true range over a specific period (default 14). It helps traders gauge the typical extent of price movement, regardless of the direction.
⦿ ATR%: Expresses the Average True Range as a percentage of the price, which allows traders to compare the volatility of stocks with different prices.
⦿ Relative Strength (RS): Compares a stock’s performance to a chosen benchmark index (default NIFTYMIDSML400) over a specific period (default 50 days).
⦿ RS Score (IBD-style): A normalized 1–100 rating inspired by Investor’s Business Daily methodology.
 
  How it works: The RS Score is based on a weighted average of price changes over 3 months (40%), 6 months (20%), 9 months (20%), and 12 months (20%).
  The raw value is converted into a percentage return, then normalized over the past 252 trading days so the lowest value maps to 1 and the highest to 100.
  This produces a percentile-style score that highlights the strongest stocks in relative terms.
 
⦿ Relative Volume (RVol): Compares a stock's current volume to its average volume over a specific period (default 50). It is calculated by dividing the current volume by the average historical volume.
⦿ Average ₹ Volume (Turnover): Represents the total monetary value of shares traded for a stock. It's calculated by multiplying a day's closing price by its volume, with the final value converted to crores for clarity. This metric is a key indicator of a stock's liquidity and overall market interest.
⦿ Moving Average Extension: Measures how far a stock's current price has moved from from a selected moving average (EMA or SMA). This deviation is normalized by the stock's volatility (ATR%), with a default threshold of 6 ATR used to indicate that the stock is significantly extended and is marked with a selected shape (default Red Flag).
⦿ 52-Weeks High & Low: Measures a stock's current price in relation to its highest and lowest prices over the past year. It calculates the percentage a stock is below its 52-week high and above its 52-week low.
⦿ Market Capitalization: Market Cap represents the total value of all outstanding.
⦿ Free Float: It is the value of shares readily available for public trading, with the Free Float Percentage showing the proportion of shares available to the public.
⦿ Trend: Uses Supertrend indicator to identify the current trend of a stock's price. A factor (default 3) and an ATR period (default 10) is used to signal whether the trend is up or down.
⦿ Minervini Trend Template (MTT): It is a set of technical criteria designed to identify stocks in strong uptrends.
 
 Price > 50-DMA > 150-DMA > 200-DMA
 200-DMA is trending up for at least 1 month
 Price is at least 30% above its 52-week low.
 Price is within at least 25 percent of its 52-week high
 Table highlights when a stock meets all above criteria.
 
⦿ Sector & Industry: Display stock's sector and industry, provides categorical classification to assist sector-based analysis. The sector is a broad economic classification, while the industry is a more specific group within that sector.
⦿ Moving Averages (MAs): Plot up to four customizable Moving Averages on a chart. You can independently set the type (Simple or Exponential), the source price, and the length for each MA to help visualize a stock's underlying trend.
 
 MA1: Default 10-EMA
 MA2: Default 20-EMA
 MA3: Default 50-EMA
 MA4: Default 200-EMA
 
⦿ Moving Average (MA) Crossover: It is a trend signal that occurs when a shorter-term moving average crosses a longer-term one. This script identifies these crossover events and plots a marker on the chart to visually signal a potential change in trend direction.
 
  User-configurable MAs (short and long).
  A bullish crossover occurs when the short MA crosses above the long MA.
  A bearish crossover occurs when the short MA crosses below the long MA.
 
⦿ Inside Bar (IB): An Inside Bar is a candlestick whose entire price range is contained within the range of the previous bar. This script identifies this pattern, which often signals consolidation, and visually marks bullish and bearish inside bars on the chart with distinct colors and labels.
⦿ Tightness: Identifies periods of low volatility and price consolidation. It compares the price range over a short lookback period (default 3) to the average daily range (ADR). When the lookback range is smaller than the ADR, the indicator plots a marker on the chart to signal consolidation.
⦿ PowerBar (Purple Dot): Identifies candles with a strong price move on high volume. By default, it plots a purple dot when a stock moves up or down by at least 5% and has a minimum volume of 500,000. More dots indicate higher volatility and liquidity.
⦿ Squeezing Range (SQ): Identifies periods of low volatility, which can often precede a significant price move. It checks if the Bollinger Bands have narrowed to a range that is smaller than the Average True Range (ATR) for a set number of consecutive bars (default 3).
 
  (UpperBB - LowerBB) < (ATR × 2)
 
⦿ Mark 52-Weeks High and Low: Marks and labels a stock's 52-Week High and Low prices directly on the chart. It draws two horizontal lines extending from the candles where the highest and lowest prices occurred over the past year, providing a clear visual reference for long-term price extremes.
 ⏳PineScreener Filters  
The indicator’s alert conditions act as filters for PineScreener.
 
  Price Filter: Minimum and maximum price cutoffs (default ₹25 - ₹10000).
  Daily Price Change Filter: Minimum and maximum daily percent change (default -5% and 5%).
 
 🔔 Built-in Alerts 
Supports alert creation for:
 
  ADR%, ATR/ATR %, RS, RS Rating, Turnover
  Moving Average Crossover (Bullish/Bearish)
  Minervini Trend Template
  52-Week High/Low
  Inside Bars (Bullish/Bearish)
  Tightness
  Squeezing Range (SQ)
 
⚙️ Customizable Visualization
 
  Switchable between vertical or horizontal layout.
  Works in dark/light mode
  User-configurable to toggle any indicator ON or OFF.
  User-configurable Moving (EMA/SMA), Period/Lengths and thresholds.
 
⦿ (Optional) : For horizontal table orientation increase Top Margin to 16% in Chart (Canvas) settings to avoid chart overlapping with table.
⚡ Add this script to your chart and start making smarter trade decisions today! 🚀
ค้นหาในสคริปต์สำหรับ " TABLE"
ATR+CCI Monetary Risk Tool - TP/SL⚙️ ATR+CCI Monetary Risk Tool — Volatility-aware TP/SL & Position Sizing   
Exact prices (no rounding), ATR-percentile dynamic stops, and risk-budget sizing for consistent execution.
 🧠 What this indicator is   
A risk-first planning tool. It doesn’t generate orders; it gives you clean, objective levels (Entry, SL, TP) and position size derived from your risk budget. It shows only the latest setup to keep charts readable, and a compact on-chart table summarizing the numbers you actually act on.
 ✨ What makes it different   
 
 Dynamic SL by regime (ATR percentile):  Instead of a fixed multiple, the SL multiplier adapts to the current volatility percentile (low / medium / high). That helps avoid tight stops in noisy markets and over-wide stops in quiet markets.
 Risk budgeting, not guesswork:  Size is computed from Account Balance × Max Risk % divided by SL distance × point value. You risk the same dollars across assets/timeframes.
 Precision that matches your instrument:  Entry, TP, SL, and SL Distance are displayed as exact prices (no rounding), truncated to syminfo.mintick so they align with broker/exchange precision.
 Symbol-aware point value:  Uses syminfo.pointvalue so you don’t maintain tick tables.
 Non-repaint option:  Work from closed bars to keep the plan stable.
 
 🔧 How to use (quick start)   
Add to chart and pick your timeframe and symbol.
In settings:  
 
Set Account Balance (USD) and Max Risk per Trade (%).  
Choose R:R (1:1 … 1:5).  
Pick ATR Period and CCI Period (defaults are sensible).  
Keep Dynamic ATR ON to adapt SL by regime.  
Keep Use closed-bar values ON to avoid repaint when planning.
 
Read the labels (Entry/TP/SL) and the table (SL Distance, Position Size, Max USD Risk, ATR Percentile, effective SL Mult).  
Combine with your entry trigger (price action, levels, momentum, etc.). This indicator handles risk & targets.
 📐 How levels are computed   
 
 Bias:  CCI ≥ 0 ⇒ long, otherwise short.
 ATR Percentile:  Percent rank of ATR(atrPeriod) over a lookback window.
 Effective SL Mult: 
 
 If percentile < Low threshold ⇒ use Low SL Mult (tighter).
 If between thresholds ⇒ use Base SL Mult.
 If percentile > High threshold ⇒ use High SL Mult (wider).
 
 Stop-Loss:  SL = Entry ± ATR × SL_Mult (minus for long, plus for short).
 Take-Profit:  TP = Entry ± (Entry − SL) × R (R from the R:R dropdown).
 Position Size: 
 
 USD Risk = Balance × Risk%
 Contracts = USD Risk ÷ (|Entry − SL| × PointValue)
 For futures, quantity is floored to whole contracts.
 
 Exact prices:  Entry/TP/SL and SL Distance are not rounded; they’re truncated to mintick so what you see matches valid price increments.
 
 📊 What you’ll see on chart   
 
 Latest Entry (blue), TP (green), SL (red) with labels (optional emojis: ➡️ 🎯 🛑).
 Info Table with:
 
 Bias, Entry, TP, SL (exact, truncated to mintick)
 SL Distance (exact, truncated)
 Position Size (contracts/units)
 Max USD Risk
 Point Value
 ATR Percentile and effective SL Mult
 
 
 🧪 Practical examples   
 
 High-volatility session  (e.g., XAUUSD, 1H): ATR percentile is high ⇒ wider SL, smaller size. Reduces churn from normal noise during macro events.
 Range-bound market  (e.g., EURUSD, 4H): ATR percentile low ⇒ tighter SL, better R:R. Helps you avoid carrying unnecessary risk.
 Index swing planning  (e.g., ES1!, Daily): Non-repaint levels + risk budgeting = consistent sizing across days/weeks, easier to review and journal.
 
 🧭 Why traders should use it   
 
 Consistency:  Same dollar risk regardless of instrument or volatility regime.
 Clarity:  One-trade view forces focus; you see the numbers that matter.
 Adaptivity:  Stops calibrated to the market’s current behavior, not last month’s.
 Discipline:  A visible checklist (SL distance, size, USD risk) before you hit buy/sell.
 
 🔧 Input guide (practical defaults)   
 
 CCI Period:  100 by default; use as a bias filter, not an entry signal.
 ATR Period:  14 by default; raise for smoother, lower for more reactive.
 ATR Percentile Lookback:  200 by default (stable regime detection).
 Percentile thresholds:  33/66 by default; widen the gap to change how often regimes switch.
 SL Mults:  Start ~1.5 / 2.0 / 2.5 (low/base/high). Tune by asset.
 Risk % per trade:  Common pro ranges are 0.25–1.0%; adjust to your risk tolerance.
 R:R:  Start with 1:2 or 1:3 for balanced skew; adapt to strategy edge.
 Closed-bar values:  Keep ON for planning/live; turn OFF only for exploration.
 
 💡 Best practices   
 
 Combine with your entry logic (structure, momentum, liquidity levels).
 Review ATR percentile and effective SL Mult across sessions so you understand regime shifts.
 For futures, remember size is floored to whole contracts—safer by design.
 Journal trades with the table snapshot to improve risk discipline over time.
 
 ⚠️ Notes & limitations   
 
This is not a strategy; it does not place orders or alerts.  
No slippage/commissions modeled here; build a strategy() version for backtests that mirror your broker/exchange.  
Displayed non-price metrics use two decimals; prices and SL Distance are exact (truncated to mintick).
 
 📎 Disclaimer   
For educational purposes only. Not financial advice. Markets involve risk. Test thoroughly before trading live.
NightWatch 24/5 [theUltimator5]NightWatch 24/5 is a comprehensive indicator designed to seamlessly display both regular and overnight trading (BOATS exchange) into a single chart.  Current TV limitations don't allow both overnight trading and regular exchanges to appear on the same chart due to timeframe visibility settings.  We can either select between RTH (Regular Trading Hours) or ETH (Extended Trading Hours).  There is no option to show 24 hour charts when looking at a stock.  This indicator attempts to solve this issue.
 Please read the entire description thoroughly because this indicator takes a little bit of setup to work properly! 
 ---IMPORTANT-- -
This indicator MUST be used over a liquid cryptocurrency chart, like Bitcoin.  It requires access to something that trades 24/7 and has volume data for all periods.  Bitcoin on Coinbase is the best option.  Please select Bitcoin as your main ticker before adding this indicator to the chart.
-------------------
This indicator combines the price of both the regular trading hours and the overnight trading to create a single price line and volume candles.  You can select view settings to either overlay the price on the chart, or have it below the chart.  Volume can be toggled on or off as well.
Default settings:
Ticker = GME
Overlay Candles on Main Chart = true
Display Data = Both Price and Volume
Show Status Table = true
Here is an explanation for each of these settings:
 
 Ticker - Type in the ticker you want to track overnight and intraday data for
 Overlay Candles on Main chart - This will push the price candles onto the main chart area instead of below it.  Volume candles will remain in their own separate pane below.  This is useful if you want to track both price and volume without adding the indicator twice.
 Display Data - This determines what data to show.  Volume, price, or both volume and price.
 Show Status Table - This toggles on or off the table that shows the ticker name, current session, and the price (change) of the ticker since the most recent daily close.
 
If you overlay the price onto the chart, the price of the stock you are looking at will likely be a VERY different price than the crypto it is overlaying against.  There are a couple workarounds.  You can either zoom into the chart around the price of the stock you are looking at (time consuming), or you can go into your object tree and drag the indicator up into the main chart area.  This will overlay the price onto the crypto while maintaining it's own unique y-axis.
After you move the indicator up, you can add the indicator back a second time, then change the settings to only show the volume candles.  You can then toggle off the table on one of the two so you don't see duplicate tables.  This is the setting I am showing in my chart above.  The indicator is added twice with the price being pulled up into the same window as Bitcoin, then a second instance below showing just volume.
 --LIMITATIONS-- 
 
 Since the indicator requires the use of a 24 hour market ticker like Bitcoin, it DOES NOT display extended hours data.  The price and volume data STOPS at 16:00 EST then resumes back up at 20:00 EST when BOATS opens.  At 04:00, the price and volume then stops until 09:30, when the regular trading hours begin.  This causes a flat line in the price during those periods.  Unfortunately, there is no current workaround to this issue.
 If Bitcoin becomes illiquid (or whatever crypto you choose), it will only populate data for the ticker you want if there is data available for that crypto at the same time period.  A gap in Bitcoin volume will show a gap in trade activity for your ticker.
 
AI's Opinion Trading System V21. Complete Summary of the Indicator Script
AI’s Opinion Trading System V2 is an advanced, multi-factor trading tool designed for the TradingView platform. It combines several technical indicators (moving averages, RSI, MACD, ADX, ATR, and volume analysis) to generate buy, sell, and hold signals. The script features a customizable AI “consensus” engine that weighs multiple indicator signals, applies user-defined filters, and outputs actionable trade instructions with clear stop loss and take profit levels. The indicator also tracks sentiment, volume delta, and allows for advanced features like pyramiding (adding to positions), custom stop loss/take profit prices, and flexible signal confirmation logic. All key data and signals are displayed in a dynamic, color-coded table on the chart for easy review.
2. Full Explanation of the Table
The table is a real-time dashboard summarizing the indicator’s logic and recommendations for the most recent bars. It is color-coded for clarity and designed to help traders quickly understand market conditions and AI-driven trade signals.
Columns (from left to right):
Column Name	What it Shows
Bar	The time context: “Now” for the current bar, then “Bar -1”, “Bar -2”, etc. for previous bars.
Raw Consensus	The raw AI consensus for each bar: “Buy”, “Sell”, or “-” (neutral).
Up Vol	The amount of volume on up (rising) bars.
Down Vol	The amount of volume on down (falling) bars.
Delta	The difference between up and down volume. Green if positive, red if negative, gray if neutral.
Close	The closing price for each bar, color-coded by price change.
Sentiment Diff	The difference between the close and average sentiment price (a custom sentiment calculation).
Lookback	The number of bars used for sentiment calculation (if enabled).
ADX	The ADX value (trend strength).
ATR	The ATR value (volatility measure).
Vol>Avg	“Yes” (green) if volume is above average, “No” (red) otherwise.
Confirm	Whether the AI signal is confirmed over the required bars.
Logic Output	The AI’s interpreted signal after applying user-selected logic: “Buy”, “Sell”, or “-”.
Final Action	The final signal after all filters: “Buy”, “Sell”, or “-”.
Trade Instruction	A plain-English instruction: Buy/Sell/Add/Hold/No Action, with price, stop loss, and take profit.
Color Coding:
Green: Positive/bullish values or signals
Red: Negative/bearish values or signals
Gray: Neutral or inactive
Blue background: For all table cells, for visual clarity
White text: Default, except for color-coded cells
3. Full User Instructions for Every Input/Style Option
Below are plain-language instructions for every user-adjustable option in the indicator’s input and style pages:
Inputs
Table Location
What it does: Sets where the summary table appears on your chart.
How to use: Choose from 9 positions (Top Left, Top Center, Top Right, etc.) to avoid overlapping with other chart elements.
Decimal Places
What it does: Controls how many decimal places prices and values are displayed with.
How to use: Increase for assets with very small prices (e.g., SHIB), decrease for stocks or forex.
Show Sentiment Lookback?
What it does: Shows or hides the “Lookback” column in the table, which displays how many bars are used in the sentiment calculation.
How to use: Turn off if you want a simpler table.
AI View Mode
What it does: Selects the logic for how the AI combines signals from different indicators.
Majority: Follows the most common signal among all indicators.
Weighted: Uses custom weights for each type of signal.
Custom: Lets you define your own logic (see below).
How to use: Pick the logic style that matches your trading philosophy.
AI Consensus Weight / Vol Delta Weight / Sentiment Weight
What they do: When using “Weighted” AI View Mode, these let you set how much influence each factor (indicator consensus, volume delta, sentiment) has on the final signal.
How to use: Increase a weight to make that factor more important in the AI’s decision.
Custom AI View Logic
What it does: Lets advanced users write their own logic for when the AI should signal a trade (e.g., “ai==1 and delta>0 and sentiment>0”).
How to use: Only use if you understand basic boolean logic.
Use Custom Stop Loss/Take Profit Prices?
What it does: If enabled, you can enter your own fixed stop loss and take profit prices for buys and sells.
How to use: Turn on to override the auto-calculated SL/TP and enter your desired prices below.
Custom Buy/Sell Stop Loss/Take Profit Price
What they do: If custom SL/TP is enabled, these fields let you set exact prices for stop loss and take profit on both buy and sell trades.
How to use: Enter your preferred price, or leave at 0 for auto-calculation.
Sentiment Lookback
What it does: Sets how many bars the sentiment calculation should look back.
How to use: Increase to smooth out sentiment, decrease for faster reaction.
Max Pyramid Adds
What it does: Limits how many times you can add to an existing position (pyramiding).
How to use: Set to 1 for no adds, higher for more aggressive scaling in trends.
Signal Preset
What it does: Quick-sets a group of signal parameters (see below) for “Robust”, “Standard”, “Freedom”, or “Custom”.
How to use: Pick a preset, or select “Custom” to adjust everything manually.
Min Bars for Signal Confirmation
What it does: Sets how many bars a signal must persist before it’s considered valid.
How to use: Increase for more robust, less frequent signals; decrease for faster, but possibly less reliable, signals.
ADX Length
What it does: Sets the period for the ADX (trend strength) calculation.
How to use: Longer = smoother, shorter = more sensitive.
ADX Trend Threshold
What it does: Sets the minimum ADX value to consider a trend “strong.”
How to use: Raise for stricter trend confirmation, lower for more trades.
ATR Length
What it does: Sets the period for the ATR (volatility) calculation.
How to use: Longer = smoother volatility, shorter = more reactive.
Volume Confirmation Lookback
What it does: Sets how many bars are used to calculate the average volume.
How to use: Longer = more stable volume baseline, shorter = more sensitive.
Volume Confirmation Multiplier
What it does: Sets how much current volume must exceed average volume to be considered “high.”
How to use: Increase for stricter volume filter.
RSI Flat Min / RSI Flat Max
What they do: Define the RSI range considered “flat” (i.e., not trending).
How to use: Widen to be stricter about requiring a trend, narrow for more trades.
Style Page
Most style settings (such as plot colors, label sizes, and shapes) are preset in the script for visual clarity.
You can adjust plot visibility and colors (for signals, stop loss, take profit) in the TradingView “Style” tab as with any indicator.
Buy Signal: Shows as a green triangle below the bar when a buy is triggered.
Sell Signal: Shows as a red triangle above the bar when a sell is triggered.
Stop Loss/Take Profit Lines: Red and green lines for SL/TP, visible when a trade is active.
SL/TP Labels: Small colored markers at the SL/TP levels for each trade.
How to use:
Toggle visibility or change colors in the Style tab if you wish to match your chart theme or preferences.
In Summary
This indicator is highly customizable—you can tune every aspect of the AI logic, risk management, signal filtering, and table display to suit your trading style.
The table gives you a real-time, comprehensive view of all relevant signals, filters, and trade instructions.
All inputs are designed to be intuitive—hover over them in TradingView for tooltips, or refer to the explanations above for details.
% / ATR Buy, Target, Stop + Overlay & P/L% / ATR Buy, Target, Stop + Overlay & P/L 
This tool combines volatility‑based and fixed‑percentage trade planning into a single, on‑chart overlay—with built‑in profit‑and‑loss estimates. Toggle between ATR or percentage modes, plot your Buy, Target and Stop levels, and see the dollar gain or loss for a specified position size—all in one interactive table and chart display.
NOTE: To activate plotted lines, price labels, P/L rows and table values, enter a Buy Price greater than zero.
 What It Does 
Mode Toggle: Choose between “ATR” (volatility‑based) or “%” (fixed‑percentage) calculations.
Buy Price Input: Manually enter your entry price.
ATR Mode:
Target = Buy + (ATR × Target Multiplier)
Stop = Buy − (ATR × Stop Multiplier)
Percentage Mode:
Target = Buy × (1 + Target % / 100)
Stop = Buy × (1 – Stop % / 100)
P/L Estimates: Specify a dollar amount to “invest” at your Buy price, and the script calculates:
Gain ($): Profit if Target is hit
Loss ($): Cost if Stop is hit
Visual Overlay: Draws horizontal lines for Buy, Target and Stop, with optional price labels on the chart scale.
Interactive Table: Displays Buy, Target, Stop, ATR/timeframe info (in ATR mode), percentages (in % mode), and P/L rows.
 Customization Options 
Line Settings:
Choose color, style (solid/dashed/dotted), and width for Buy, Target, Stop lines.
Extend lines rightward only or in both directions.
Table Settings:
Position the table (top/bottom × left/right).
Toggle individual rows: Buy Price; Target (multiplier or %); Stop (multiplier or %); Target ATR %; Stop ATR %; ATR Time Frame; ATR Value; Gain ($); Loss ($).
Customize text colors for each row and background transparency.
General Inputs:
ATR length and optional ATR timeframe override (e.g. use daily ATR on an intraday chart).
Target/Stop multipliers or percentages.
Dollar Amount for P/L calculations.
 How to Use It for Trading 
Plan Your Entry: Enter your intended Buy Price and position size (dollar amount).
Select Mode: Toggle between ATR or % mode depending on whether you prefer volatility‑based or fixed offsets.
Assess R:R and P/L: Instantly see your Target, Stop levels, and potential profit or loss in dollars.
Visual Reference: Lines and price labels update in real time as you tweak inputs—ideal for live trading, backtesting or trade journaling.
 Ideal For 
Traders who want both volatility‑based and percentage‑based exit options in one tool
Those who need on‑chart P/L estimates based on position size
Swing and intraday traders focused on objective, rule‑based trade management
Anyone who uses ATR for adaptive stops/targets or fixed percentages for simpler exits
Line Strategy v6Line Indicator for TradingView
This Pine Script indicator identifies the largest candles on both 5-minute and 1-hour timeframes within the last 240 five-minute bars. It provides visual markers and detailed information to help traders spot significant price movements.
Key Features
Dual Timeframe Analysis:
Identifies largest candle on 5-minute timeframe
Identifies largest candle on 1-hour timeframe (aggregated from 12 five-minute candles)
Visual Markers:
Blue label marks the highest-range 5-minute candle
Purple background highlights the highest-range hourly candle period
Information Table:
Shows price ranges for both timeframes
Displays precise timestamps for identified candles
Color-coded for quick reference
Progress Indicator:
Shows how many bars have been collected (out of 240 required)
How It Works
Data Collection:
Stores high, low, timestamp, and bar index of the last 240 five-minute candles
Automatically updates with each new bar
5-Minute Analysis:
Scans all 5-minute candles to find the one with the largest price range (high - low)
Marks this candle with a blue label showing its range
Hourly Analysis:
Groups 12 five-minute candles to form each hourly candle
Finds the hourly candle with the largest price range
Highlights the entire hour period with a purple background
Information Display:
Creates a table in the top-right corner showing:
Range values for both timeframes
Timestamps of identified candles
Time period of the largest hourly candle
Usage Instructions
Apply the indicator to any 5-minute chart
Wait for the indicator to collect 240 bars (about 20 trading hours)
Results will appear automatically:
Blue label on the largest 5-minute candle
Purple background on the largest hourly candle period
Information table with detailed metrics
Customization Options
You can easily adjust these aspects by modifying the code:
Colors of markers and table cells
Transparency levels of background highlights
Precision of range values displayed
Position of the information table
The indicator is optimized for performance and works in both historical and real-time modes.
Options Volatility Strategy Analyzer [TradeDots]The Options Volatility Strategy Analyzer is a specialized tool designed to help traders assess market conditions through a detailed examination of historical volatility, market benchmarks, and percentile-based thresholds. By integrating multiple volatility metrics (including VIX and VIX9D) with color-coded regime detection, the script provides users with clear, actionable insights for selecting appropriate options strategies.
 📝 HOW IT WORKS 
 1. Historical Volatility & Percentile Calculations 
 
 Annualized Historical Volatility (HV):  The script automatically computes the asset’s historical volatility using log returns over a user-defined period. It then annualizes these values based on the chart’s timeframe, helping you understand the asset’s typical volatility profile.
 Dynamic Percentile Ranks:  To gauge where the current volatility level stands relative to past behavior, historical volatility values are compared against short, medium, and long lookback periods. Tracking these percentile ranks allows you to quickly see if volatility is high or low compared to historical norms.
 
 2. Multi-Market Benchmark Comparison 
 
 VIX and VIX9D Integration:  The script tracks market volatility through the VIX and VIX9D indices, comparing them to the asset’s historical volatility. This reveals whether the asset’s volatility is outpacing, lagging, or remaining in sync with broader market volatility conditions.
 Market Context Analysis:  A built-in term-structure check can detect market stress or relative calm by measuring how VIX compares to shorter-dated volatility (VIX9D). This helps you decide if the present environment is risk-prone or relatively stable.
 
 3. Volatility Regime Detection 
 
 Color-Coded Background:  The analyzer assigns a volatility regime (e.g., “High Asset Vol,” “Low Asset Vol,” “Outpacing Market,” etc.) based on current historical volatility percentile levels and asset vs. market ratios. A color-coded background highlights the regime, enabling traders to quickly interpret the market’s mood.
 Alerts on Regime Changes & Spikes:  Automated alerts warn you about any significant expansions or contractions in volatility, allowing you to react swiftly in changing conditions.
 
 4. Strategy Forecast Table 
 
 Real-Time Strategy Suggestions:  At the close of each bar, an on-chart table generates suggested options strategies (e.g., selling premium in high volatility or buying premium in low volatility). These suggestions provide a quick summary of potential tactics suited to the current regime.
 Contextual Market Data:  The table also displays key statistics, such as VIX levels, asset historical volatility percentile, or ratio comparisons, helping you confirm whether volatility conditions warrant more conservative or more aggressive strategies.
 
 🛠️ HOW TO USE 
 1. Select Your Timeframe:  The script supports multiple timeframes. For short-term trading, intraday charts often reveal faster shifts in volatility. For swing or position trading, daily or weekly charts may be more stable and produce fewer false signals.
 2. Check the Volatility Regime:  Observe the background color and on-chart labels to identify the current regime (e.g., “HIGH ASSET VOL,” “LOW VOL + LAGGING,” etc.).
 3. Review the Forecast Table:  The table suggests strategy ideas (e.g., iron condors, long straddles, ratio spreads) depending on whether volatility is elevated, subdued, or spiking. Use these as a starting point for designing trades that match your risk tolerance.
 4. Combine with Additional Analysis:  For optimal results, confirm signals with your broader trading plan, technical tools (moving averages, price action), and fundamental research. This script is most effective when viewed as one component in a comprehensive decision-making process.
 ❗️LIMITATIONS 
 Directional Neutrality:  This indicator analyzes volatility environments but does not predict price direction (up/down). Traders must combine with directional analysis for complete strategy selection.
 Late or Missed Signals:  Since all calculations require a bar to close, sharp intrabar volatility moves may not appear in real-time.
 False Positives in Choppy Markets:  Rapid changes in percentile ranks or VIX movements can generate conflicting or premature regime shifts.
 Data Sensitivity:  Accuracy depends on the availability and stability of volatility data. Significant gaps or unusual market conditions may skew results.
 Market Correlation Assumptions:  The system assumes assets generally correlate with S&P 500 volatility patterns. May be less effective for:
 
 Small-cap stocks with unique volatility drivers
 International stocks with different market dynamics
 Sector-specific events disconnected from broad market
 Cryptocurrency-related assets with independent volatility patterns
 
 RISK DISCLAIMER 
Options trading involves substantial risk and is not suitable for all investors. Options strategies can result in significant losses, including the total loss of premium paid. The complexity of options strategies requires thorough understanding of the risks involved.
This indicator provides volatility analysis for educational and informational purposes only and should not be considered as investment advice. Past volatility patterns do not guarantee future performance. Market conditions can change rapidly, and volatility regimes may shift without warning.
No trading system can guarantee profits, and all trading involves the risk of loss. The indicator's regime classifications and strategy suggestions should be used as part of a comprehensive trading plan that includes proper risk management, directional analysis, and consideration of broader market conditions.
RSI Multi-TF TabRSI Multi-Timeframe Table 📊
A tool for multi-timeframe RSI analysis with visual overbought/oversold level highlighting.
Description
This indicator calculates the Relative Strength Index (RSI) for the current chart and displays RSI values across five additional timeframes (15m, 1h, 4h, 1d, 1w) in a dynamic table. The color-coded system simplifies identifying overbought (>70), oversold (<30), and neutral zones. Visual signals on the chart enhance analysis for the current timeframe.
Key Features
✅ Multi-Timeframe Analysis :
Track RSI across 15m, 1h, 4h, 1d, and 1w in a compact table.
Color-coded alerts:
🔴 Red — Overbought (potential pullback),
🔵 Blue — Oversold (potential rebound),
🟡 Yellow — Neutral zone.
✅ Visual Signals :
Background shading for oversold/overbought zones on the main chart.
Horizontal lines at 30 and 70 levels for reference.
✅ Customizable Settings :
Adjust RSI length (default: 14), source (close, open, high, etc.), and threshold levels.
How to Use
Table Analysis :
Compare RSI values across timeframes to spot divergences (e.g., overbought on 15m vs. oversold on D).
Use colors for quick decisions.
Chart Signals :
Blue background suggests bullish potential (oversold), red hints at bearish pressure (overbought).
Always confirm with other tools (volume, trends, or candlestick patterns).
Examples :
RSI(1h) > 70 while RSI(4h) < 30 → Possible reversal upward.
Sustained RSI(1d) above 50 may indicate a bullish trend.
Settings
RSI Length : Period for RSI calculation (default: 14).
RSI Source : Data source (close, open, high, low, hl2, hlc3, ohlc4).
Overbought/Oversold Levels : Thresholds for alerts (default: 70/30).
Important Notes
No direct trading signals : Use this as an analytical tool, not a standalone strategy.
Test strategies historically and consider market context before trading.
MVRV Ratio [Alpha Extract]The MVRV Ratio Indicator provides valuable insights into Bitcoin market cycles by tracking the relationship between market value and realized value. This powerful on-chain metric helps traders identify potential market tops and bottoms, offering clear buy and sell signals based on historical patterns of Bitcoin valuation.
🔶 CALCULATION The indicator processes MVRV ratio data through several analytical methods:
 
 Raw MVRV Data: Collects MVRV data directly from INTOTHEBLOCK for Bitcoin
 Optional Smoothing: Applies simple moving average (SMA) to reduce noise
 Status Classification: Categorizes market conditions into four distinct states
 Signal Generation: Produces trading signals based on MVRV thresholds
 Price Estimation: Calculates estimated realized price (Current price / MVRV ratio)
 Historical Context: Compares current values to historical extremes
 
Formula:
 
 MVRV Ratio = Market Value / Realized Value
 Smoothed MVRV = SMA(MVRV Ratio, Smoothing Length)
 Estimated Realized Price = Current Price / MVRV Ratio
 Distance to Top = ((3.5 / MVRV Ratio) - 1) * 100
 Distance to Bottom = ((MVRV Ratio / 0.8) - 1) * 100
 
🔶 DETAILS Visual Features:
 
 MVRV Plot: Color-coded line showing current MVRV value (red for overvalued, orange for moderately overvalued, blue for fair value, teal for undervalued)
 Reference Levels: Horizontal lines indicating key MVRV thresholds (3.5, 2.5, 1.0, 0.8)
 Zone Highlighting: Background color changes to highlight extreme market conditions (red for potentially overvalued, blue for potentially undervalued)
 Information Table: Comprehensive dashboard showing current MVRV value, market status, trading signal, price information, and historical context
 
Interpretation:
 
 MVRV ≥ 3.5: Potential market top, strong sell signal
 MVRV ≥ 2.5: Overvalued market, consider selling
 MVRV 1.5-2.5: Neutral market conditions
 MVRV 1.0-1.5: Fair value, consider buying
 MVRV < 1.0: Potential market bottom, strong buy signal
 
🔶 EXAMPLES
Market Top Identification: When MVRV ratio exceeds 3.5, the indicator signals potential market tops, highlighting periods where Bitcoin may be significantly overvalued.
Example: During bull market peaks, MVRV exceeding 3.5 has historically preceded major corrections, helping traders time their exits.
Bottom Detection: MVRV values below 1.0, especially approaching 0.8, have historically marked excellent buying opportunities.
Example: During bear market bottoms, MVRV falling below 1.0 has identified the most profitable entry points for long-term Bitcoin accumulation.
Tracking Market Cycles: The indicator provides a clear visualization of Bitcoin's market cycles from undervalued to overvalued states.
  
Example: Following the progression of MVRV from below 1.0 through fair value and eventually to overvalued territory helps traders position themselves appropriately throughout Bitcoin's market cycle.
Realized Price Support: The estimated realized price often acts as a significant
support/resistance level during market transitions.
Example: During corrections, price often finds support near the realized price level calculated by the indicator, providing potential entry points.
🔶 SETTINGS
Customization Options:
 
 Smoothing: Toggle smoothing option and adjust smoothing length (1-50)
 Table Display: Show/hide the information table
 Table Position: Choose between top right, top left, bottom right, or bottom left positions
 Visual Elements: All plots, lines, and background highlights can be customized for color and style
 
The MVRV Ratio Indicator provides traders with a powerful on-chain metric to identify potential market tops and bottoms in Bitcoin. By tracking the relationship between market value and realized value, this indicator helps identify periods of overvaluation and undervaluation, offering clear buy and sell signals based on historical patterns. The comprehensive information table delivers valuable context about current market conditions, helping traders make more informed decisions about market positioning throughout Bitcoin's cyclical patterns.
Daily ATR Bonanza: Expected Moves - Tr33man      Daily ATR Bonanza: Expected Moves 
 Overview 🤷♂️
The Daily ATR Bonanza script is a powerful trading tool designed to help traders visualize and understand potential price movements using the Average True Range (ATR). It provides daily and weekly ATR levels, historical statistics, and conditional probability analysis to give traders actionable insights. The script also plots the daily Keltner channel. This script is ideal for traders who want to gauge volatility, identify key levels, and make data-driven decisions.
b]Key Features: 
📈 1. Daily and Weekly ATR Levels 
 🔵ATR Levels: The script calculates and displays ATR-based levels for the day and week. These levels are derived from the previous day's or week's close price and are adjusted using customizable multipliers (0.5x, 1x, and 1.5x by default).
 🔵You can choose the number of ATR levels (1, 2, or 3) and adjust the multipliers to suit your trading strategy.
🌐 2. ATR Bands (Keltner Channels) 
 🔵The script includes an option to display ATR Bands, which are volatility-based envelopes around a moving average. These bands help identify overbought and oversold conditions.
 🔵You can adjust the ATR multiplier and the length of the moving average used for the bands.
🧮 3. Historical Statistics and Conditional Probability 
 🔵 Historical Analysis: The script analyzes historical price movements to calculate the likelihood of closing at certain ATR levels.
 🔵 Conditional Probability: This feature shows the probability of the price reaching specific ATR levels given the current market conditions. The conditional matches historical data by an open in the same opening ATR bucket, as well as the current price bucket having been visited in the historical case. Conditional probabilities are just statistics, and do not predict anything.
 Data Table:  📚
 
 🔵 Historical Close Probability: The percentage of days the price closed within each ATR level.
 🔵 Conditional Close Probability: The likelihood of the price closing within each ATR level today.
 
❓ What is Conditional Probability? ❓
Conditional probability is a statistical measure that calculates the likelihood of an event occurring given that another event has already occurred. In this script, it is used to determine the probability of the price reaching specific ATR levels based on the current opening range as well as current ATR distance from the previous close.
For example:
If the market opens near the lower end of the first ATR level, the script calculates the likelihood of the price reaching the upper end of the first, second, or third ATR level.
This analysis is based on historical data, making it a powerful tool for understanding potential price movements.
🌟 Understanding the Levels 
 🔵Daily Levels: These are based on the previous day's close price and ATR. They are updated at the start of each new day.
 🔵Weekly Levels: These are based on the previous week's close price and ATR. They are updated at the start of each new week.
 🔵ATR Bands: These are dynamic levels that adjust with market volatility.
🔬 Analyze the Statistics (Daily only for now, no weekly yet) 
 🔵Use the interactive table to understand historical probabilities and conditional probabilities.
 🔵Focus on the current opening range and the likelihood of reaching specific levels.
🧠 Make Trading Decisions 
 🔵Use the ATR levels and bands to identify key support and resistance levels.
 🔵Use the conditional probability table to gauge the likelihood of reaching specific targets.
 🔵Adjust your strategy based on the historical performance of the market.
 Example Use Cases 
 1. Day Trading 
Use the daily ATR levels to set intraday targets and stop-loss levels.
Monitor the conditional probability table to adjust your expectations based on the opening range.
 2. Swing Trading 
Use the weekly ATR levels to identify longer-term support and resistance levels.
 3. Scalping 
Use the ATR bands to identify overbought and oversold conditions.
Use the conditional probability table to quickly assess the likelihood of price movements.
Hippo Battlefield - Bulls VS Bears 20 bars## Hippo Battlefield – Bulls VS Bears (20 Bars) 
**What it is**  
A multi-dimensional momentum-and-sentiment oscillator that combines classic Bull/Bear Power with ATR- or peak-normalization, then layers on RSI and MACD-derived metrics into:  
1. **A colored bar series** showing net Bull+Bear Power strength over the last 20 bars,  
2. **A dynamic table** of each of those 20 BBP values (grouped into four 5-bar “quartals”), with symbols, per-bar change, and rolling averages, and  
3. **A composite “Weighted BBP” histogram** blending normalized RSI, MACD, and BBP into a single view.
---
### Key Inputs  
- **Length (EMA)** – look-back for the underlying EMA (default 60)  
- **Normalization Length** – look-back window for peak-normalization (default 60)  
- **Use ATR for Norm.** – toggle ATR-based normalization vs. highest-abs(BBP)  
- **Show Tables** – toggle the bottom-right 21×11 grid of raw and average BBP values  
---
### What You See  
#### 1. Colored Bars (Overlay = false)  
- Bars are colored by normalized BBP intensity:  
  - Extreme Bull (≥+10): deep blue  
  - Strong Bull (+5 to +10): green/yellow  
  - Weak Bull (+0 to +5): dark green  
  - Weak Bear (–0 to –5): dark red  
  - Strong Bear (–5 to –10): pink/red  
  - Extreme Bear (<–10): magenta  
#### 2. Bottom-Right Table (20 Bars of Data)  
- Divided into four columns (0–4, 5–9, 10–14, 15–19 bars ago) and one “average” row.  
- Each cell shows:  
  1. Bar index (1–20),  
  2. Normalized BBP value (to four decimals),  
  3. Direction symbol (↑/↓/=),  
  4. Bar-to-bar change (± value),  
  5. A separator “|”.  
- At the very bottom, each column’s 5-bar average is displayed as “Avg: X.XXXX” with a dot marker.  
#### 3. Top-Center Mini-Table  
- When ≥20 bars have elapsed, shows the date at 20 bars ago and the average BBP across the full 20-bar window.
#### 4. Normalized RSI Line  
- Rescales the classic 14-period RSI into a –20…+20 band to align with BBP.  
#### 5. MACD Lines (Hidden) & Composite Histogram  
- MACD and signal lines are calculated but not plotted by default.  
- A “Weighted BBP” histogram combines:  
  - 20% normalized RSI,  
  - 20% average of (MACD + signal + normalized BBP),  
  - 60% normalized BBP  
- Plotted as columns, color-coded by strength using the same palette as the main bars.  
#### 6. Middle Reference Line  
- A horizontal zero line to anchor over/under-zero readings.  
---
### How to Use It  
- **Trend confirmation**: Strong blue/green bars alongside a rising histogram suggest bull conviction; strong reds/magentas signal bear dominance.  
- **Divergence spotting**: Watch for price making new highs/lows while BBP or the histogram fails to follow.  
- **Quartal analysis**: The 5-bar group averages can reveal whether recent momentum is accelerating or waning.  
- **Cross-indicator weighting**: Because RSI, MACD, and raw BBP all feed into the final histogram, you get a smoothed, blended view of momentum shifts.
---
**Tip:** Tweak the EMA and normalization length to suit your preferred timeframe (e.g. shorter for intraday scalps, longer for swing trades). Enable/disable the table if you prefer a cleaner pane.
Ichimoku(TF)This Pine Script indicator is a comprehensive Ichimoku Cloud implementation designed for TradingView. Its uniqueness lies in the precisely calculated settings for each timeframe, offering a tailored Ichimoku experience across different chart resolutions.
Key Features:
Timeframe-Specific Presets: The indicator includes a wide range of pre-defined settings optimized for various timeframes (1m, 2m, 3m, 5m, 10m, 15m, 30m, 45m, 1H, 2H, 3H, 4H, 6H, 12H, 18H, 1D, 3D, 1W, 1M). This ensures accurate Ichimoku calculations and relevant signals for your chosen timeframe.
Ichimoku Cloud: Plots the standard Ichimoku Cloud components: Tenkan-sen (Conversion Line), Kijun-sen (Base Line), Senkou Span A & B (Leading Spans), and Chikou Span (Lagging Span).
Configurable Display: Allows toggling the Ichimoku Cloud display, coloring bars based on the trend (above or below the cloud), and customizing table visibility, style, font size and position.
Trend Analysis Table: A summary table provides a quick overview of the current trend based on Ichimoku components. It assesses the strength of the trend based on the price's relation to the Tenkan-sen, Kijun-sen, Kumo Cloud, Chikou Span and Kumo Twist. The table offers both detailed and short styles.
Buy/Sell Signals: Generates buy and sell signals based on Tenkan-sen/Kijun-sen crossovers.
Uniqueness:
The primary advantage of this indicator is its meticulous configuration for different timeframes. Instead of using a single set of parameters for all timeframes, it provides optimized values that are more suitable for specific chart resolutions. The summary table provides an easy and quick way to assess the trend.
Этот индикатор Pine Script представляет собой комплексную реализацию облака Ишимоку, разработанную для TradingView. Его уникальность заключается в точно рассчитанных настройках для каждого таймфрейма, предлагая индивидуальный опыт Ишимоку для различных разрешений графиков.
Ключевые особенности:
Предустановки для конкретных таймфреймов: Индикатор включает в себя широкий спектр предопределенных настроек, оптимизированных для различных таймфреймов (1m, 2m, 3m, 5m, 10m, 15m, 30m, 45m, 1H, 2H, 3H, 4H, 6H, 12H, 18H, 1D, 3D, 1W, 1M). Это обеспечивает точные вычисления Ишимоку и релевантные сигналы для выбранного вами таймфрейма.
Облако Ишимоку: Отображает стандартные компоненты облака Ишимоку: Tenkan-sen (линия конверсии), Kijun-sen (базовая линия), Senkou Span A & B (ведущие диапазоны) и Chikou Span (запаздывающий диапазон).
Настраиваемое отображение: Позволяет переключать отображение облака Ишимоку, окрашивать бары в зависимости от тренда (выше или ниже облака), а также настраивать видимость таблицы, стиль, размер шрифта и положение.
Таблица анализа тренда: Сводная таблица обеспечивает быстрый обзор текущего тренда на основе компонентов Ишимоку. Он оценивает силу тренда на основе отношения цены к Tenkan-sen, Kijun-sen, облаку Kumo, Chikou Span и Kumo Twist. Таблица предлагает как подробный, так и краткий стили.
Сигналы покупки/продажи: Генерирует сигналы покупки и продажи на основе пересечений Tenkan-sen/Kijun-sen.
Уникальность:
Основным преимуществом этого индикатора является его тщательная настройка для разных таймфреймов. Вместо использования единого набора параметров для всех таймфреймов он предоставляет оптимизированные значения, которые больше подходят для конкретных разрешений графиков. Сводная таблица обеспечивает простой и быстрый способ оценки тренда.
EMA CROSS v1.0 by ScorpioneroIndicator Description: Multi-Timeframe SMA Table & Plot
This indicator displays a structured table of Simple Moving Averages (SMA) across multiple timeframes and plots them directly on the chart for better trend analysis.
Features:
✅ Multi-Timeframe SMA Calculation: Computes SMAs for different periods (10, 60, and 223) across six timeframes (1m, 3m, 5m, 15m, 30m, 60m).
✅ Sorted SMA Table: Displays a table in the bottom-right corner of the chart, showing the three SMAs per timeframe, sorted in descending order.
✅ Color-Coded Cells: Each SMA is highlighted with a specific color:
    🟡 Yellow → 10-period SMA
    🔵 Blue → 60-period SMA
    🟣 Purple → 223-period SMA
    ⚪ Gray → Other values
    ✅ SMA Plotting on the Chart: All calculated SMAs are plotted directly on the price chart, allowing users to visualize their interaction with price movements.
How to Use:
    The table provides a quick overview of SMA rankings across timeframes, helping identify bullish or bearish trends.
    The SMA plots on the chart can be used for dynamic support/resistance analysis and trend confirmation.
This indicator is ideal for traders who rely on multi-timeframe trend analysis to make informed trading decisions! 🚀
by Scorpionero
Precious Metals & GSR (Zeiierman)█  Overview 
The  Precious Metals & GSR (Zeiierman)  is designed to provide traders and investors with a comprehensive view of the Gold-Silver Ratio (GSR) and other precious metal relationships. This tool helps evaluate the relative strength between different metals by analyzing their price ratios over historical periods, using quantile-based analysis and trend interpretation tables to highlight key insights.
  
 The Gold-Silver Ratio (GSR)  is a widely utilized metric in precious metals trading, representing the number of silver ounces required to purchase one ounce of gold. Historically, this ratio has fluctuated, providing traders with insights into the relative value of these two metals. By analyzing the GSR, traders can identify potential trading opportunities based on historical patterns and market dynamics.
 By integrating customizable percentile bands, gradient coloring for performance visualization, and dynamic ratio analysis, this indicator assists in understanding how one metal is performing relative to another, making it useful for trend tracking, risk management, and portfolio allocation. 
  
█  How It Works 
The Precious Metals & GSR Indicator operates by fetching the latest prices of the selected precious metals in the user's chosen currency. It then calculates the ratio between two selected metals (Metal 1 and Metal 2) and analyzes this ratio over a specified period. By computing quantile bands and high/low bands, the indicator provides insights into the historical performance and current standing of the ratio.
 
⚪  Ratio Calculation 
 
 The core of this indicator is the metal ratio, calculated by dividing the price of Metal 1 by Metal 2.
 A rising ratio means Metal 1 is outperforming Metal 2.
 A falling ratio means Metal 2 is outperforming Metal 1.
 The indicator automatically retrieves live market prices of Gold, Silver, Platinum, and Palladium to compute the ratio.
 
⚪  Quantile Ratio Bands 
 
 The indicator calculates the highest (max) and lowest (min) ratio levels over a user-defined period.
 It also plots quantile bands at the 10th, 25th, 50th (median), 75th, and 90th percentiles, providing deeper statistical insights into how extreme or average the current ratio is.
 The median (Q50) acts as a reference level, showing whether the ratio is above or below its historical midpoint. 
 
⚪  Interpretation Table  
 
 The Ratio Interpretation Table provides a text-based summary of the ratio’s strength.
 It detects whether Metal 1 is at a historical high, low, or within common ranges.
 This helps traders and investors make informed decisions on whether the ratio is overextended, mean-reverting, or trending.
 
⚪  Precious Metals Table 
 
 Displays live market prices for Gold, Silver, Platinum, and Palladium.
 Prices are shown in different units (oz, kg, grams, and troy ounces) based on user preferences.
 A color-coded system highlights price changes, making it easier to track market movements.
 
⚪  Physical Holding Calculator 
 
 Users can enter their precious metal holdings to estimate their current value.
 The system adjusts calculations based on weight, purity (24K, 22K, etc.), and unit of measurement.
 The holding value is displayed in the selected currency (USD, EUR, GBP, etc.).
 
█  How to Use 
⚪  Trend Identification 
 
 If the ratio is increasing, Metal 1 is gaining strength relative to Metal 2 → Possible Long Position on Metal 1 / Short on Metal 2
 If the ratio is decreasing, Metal 2 is gaining strength relative to Metal 1 → Possible Short Position on Metal 1 / Long on Metal 2
 
  
⚪  Mean Reversion Strategy 
 
 When the ratio reaches the 90th percentile, Metal 1 is historically overextended (expensive) compared to Metal 2.
 Traders may look to sell Metal 1 and buy Metal 2, expecting the ratio to decline back toward its historical average.
 
 Example  (Gold/Silver Ratio): If the GSR is above the 90th percentile, gold is very expensive relative to silver, suggesting a potential buying opportunity in silver and/or a selling opportunity in gold. 
 
 When the ratio reaches the 10th percentile, Metal 1 is historically undervalued (cheap) compared to Metal 2.
 Traders may look to buy Metal 1 and sell Metal 2, expecting the ratio to rise back toward its historical average.
 
 Example  (Gold/Silver Ratio): If the GSR is below the 10th percentile, gold is very cheap relative to silver, suggesting a potential buying opportunity in gold and/or a selling opportunity in silver. 
 ⚪  Common Strategy Based on GSR Insights 
 A common approach involves monitoring the ratio for extreme values based on historical data. When the ratio reaches historically high levels, it suggests that gold is expensive relative to silver, potentially indicating a buying opportunity for silver and/or a selling opportunity for gold. Conversely, when the ratio is at historically low levels, silver is expensive relative to gold, suggesting a potential buying opportunity for gold and/or selling opportunity for silver. This mean-reversion strategy relies on the tendency of the GSR to return to its historical average over time. 
  
⚪  Hedging & Portfolio Diversification 
 
 If Gold is strongly outperforming Silver, investors may shift allocations to balance risk.
 If Silver is rapidly gaining on Gold, it may indicate increased industrial demand or speculative interest.
 
⚪  Inflation & Economic Cycles 
 
 A rising Gold-Silver ratio often correlates with economic downturns and increased risk aversion.
 A falling Gold-Silver ratio may signal stronger economic growth and higher inflation expectations.
 
█  Settings 
 Precious Metals Table 
 
 Select which metals to display (Gold, Silver, Platinum, Palladium)
 Choose measurement units (oz, kg, grams, troy ounces)
 
 Ratio Analysis 
 
 Select Metal 1 & Metal 2 for ratio calculation
 Set historical length for quantile calculations
 
 Interpretation Table 
 
 Enable automated insights based on ratio levels
 
 Physical Holdings Calculator 
 
 Enter metal weight, purity, and unit
 Select calculation currency
 
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Display MB on BarsDescription 
The "Display MB on Bars" Pine Script indicator is designed to visually represent Market Breadth values and R4.5 scores on trading charts. This script enables traders to highlight and analyze key market behavior using pre-defined thresholds for MB scores and dynamically calculated R4.5 values. Additionally, it includes a moving average status table to assess price levels relative to the 10-day and 20-day moving averages.
 
 Features: 
1.	COB Date Matching: Displays data corresponding to specific "COB dates" provided by the user.
2.	MB Value Visualization: 
o	Highlights bars with a background color based on MB values: 
	Red if MB ≤ MB_Red (default: -1).
	Green if MB ≥ MB_Green (default: 3).
3.	R4.5 Scores Display: 
o	Creates a label on the chart with the MB and R4.5 values when conditions are met (e.g., R4.5 > 200 or specific MB thresholds).
4.	Index Moving Average Comparison: 
o	Calculates 10-day and 20-day moving averages for the selected symbol (default: NSE:NIFTYMIDSML400).
o	Shows the price position relative to these moving averages in a table.
 
 How to Use: 
1.	Configure Inputs:
o	COB Dates: Enter a comma-separated list of dates in the format DD-MM-YYYY.
o	MB Values: Provide the corresponding MB scores for the COB dates.
o	R4.5 Values: Provide the R4.5 scores for the COB dates.
o	Set the thresholds for MB values (MB Red<= and MB Green>=).
o	Toggle features like MB, RS (R4.5), and the moving average status table.
2.	Interpret the Output:
o	Observe background colors on the bars: 
	Red: Indicates MB is less than or equal to the lower threshold.
	Green: Indicates MB exceeds the upper threshold.
o	Check labels above bars for R4.5 and MB values when conditions are met.
o	Refer to the status table on the top-right corner to understand price positions relative to 10-day and 20-day moving averages.
 
This script is especially useful for traders seeking insights into custom metrics like MB and R4.5, enabling quick identification of key patterns and trends in the market.
Smart Money Breakouts [iskess 01-02 11:05]This is an big update to the excellent Smart Money Breakout Script published in Oct 2023 by ChartPrime who, to my knowledge, was the original author. 
FULL CREDIT GOES TO CHARTPRIME FOR THIS ORIGINAL WORK. 
Per the moderator's rules, you will find below a meaningful, detailed self-contained description that does not rely on delegation to the open source code or links to other content. You will find in the description details on what the script does, how it does that, how to use it, and how it is original. 
The "Smart Money Breakouts" indicator is designed to identify breakouts based on changes in character (CHOCH) or breaks of structure (BOS) patterns, facilitating automated trading with user-defined Take Profit (TP) level.
The indicator incorporates essential elements such as volume analysis and a data table to assist traders in optimizing their strategies.
🔸Breakout Detection:
The indicator scans price movements for "Change in Character" (CHOCH) and "Break of Structure" (BOS) patterns, signaling potential breakout opportunities in the market.
🔸User-Defined TP/SL :
Traders can customize the Take Profit (TP) and Stop Loss (SL) through the indicator settings, with these levels dynamically calculated based on the Average True Range (ATR). This allows for precise risk management and profit targets that adapt to market volatility.  Traders can also select the lookback period for the TP/SL calculations.
🔸Volume Analysis and Trade Direction Specific Analysis:
The indicator includes a volume checker that provides valuable insights into the strength of the breakout, taking into account trade direction.
🔸If the volume label is red and the trade is long, it suggests a higher likelihood of hitting the Stop Loss (SL).
🔸If the volume label is green and the trade is long, it indicates a higher probability of hitting the Take Profit (TP).
🔸For short trades, a red volume label suggests a higher likelihood of hitting TP, while a green label suggests a higher likelihood of hitting SL.
🔸A yellow volume label suggests that the volume is inconclusive, neither favoring bullish nor bearish movements.
🔸Data Table:
The indicator features a data table that keeps track of the number of winning and losing trades for specific timeframes or configurations. It also shows the percentage of profits vs losses, and the overall profit/loss for the selected lookback period. 
This table serves as a valuable tool for traders to analyze performance and discover optimal settings and timeframes.
The "Smart Money Breakouts" indicator provides traders with a comprehensive solution for breakout trading, combining technical analysis of changes in character and breaks of structure, volume insights, and performance tracking while dynamically adjusting TP and SL levels based on market volatility through the ATR.
This version of the script is a "significant improvement" from Chart Prime's original work in the following ways:
- A selectable range of candles for the profit/loss calculations to look back on.
- An updated table that includes the percentage of wins/losses, and and overall P&L during the selected lookback range.
- The user can now select only Long trades, Short trades, or both.
- The percentage gain/loss is now indicated for every trade on the chart.
- The user can now select a different multiplier for Stop Loss or Take Profit thresholds.
Adaptive Linear Regression ChannelOverview 
The  Adaptive Linear Regression Channel  Script is an advanced, multi-functional trading tool crafted to help traders pinpoint market trends, identify potential reversals, assess volatility, and establish dynamic levels for profit-taking and position exits. By incorporating key concepts such as  linear regression ,  standard deviation , and other volatility measures like the  ATR , the script offers a comprehensive view of market behavior beyond traditional deviation metrics.
This dynamic model continuously adapts to changing market conditions, adjusting in real-time to provide clear visualizations of trends, channels, and volatility levels. This adaptability makes the script invaluable for both  trend-following  and  counter-trend  strategies, giving traders the flexibility to respond effectively to different market environments.
 Background 
 What is Linear Regression? 
 
 Definition : Linear regression is a statistical technique used to model the relationship between a dependent variable (target) and one or more independent variables (predictors).
 In its simplest form (simple linear regression), the relationship between two variables is represented by a straight line (the regression line).
    y = mx + b
    where :
    - y is the target variable (price)
    - m is the slope
    - x is the independent variable (time)
    - b is the intercept
 
 Slope of the Regression Line 
 
 Definition: The slope (m) measures the rate at which the dependent variable (y) changes as the independent variable (x) changes.
 Interpretation: 
    - A positive slope indicates an uptrend.
    - A negative slope indicates a downtrend.
 Uses in Trading: 
    - Identifying the strength and direction of market trends.
    - Assessing the momentum of price movements.
 
 R-squared (Coefficient of Determination) 
 
 Definition: A measure of how well the regression line fits the data, ranging from 0 to 1.
 Calculation :    
     R2 = 1− (SS tot/SS res)
    where:
    - SSres is the sum of squared residuals.
    - SStot is the total sum of squares.
 Interpretation: 
    - Higher R2 indicates a better fit, meaning the model explains a larger proportion of the variance in the data.
 Uses in Trading: 
    - Higher R-squared values give traders confidence in trend-based signals.
    - Low R-squared values may suggest that the market is more random or volatile.
 
 Standard Deviation 
 
 Definition: Standard Deviation quantifies the dispersion of data points in a dataset relative to the mean. A low standard deviation indicates that data points tend to be close to the mean, while a high standard deviation indicates that the data points are spread out over a larger range of values.
  Calculation
σ=√∑(xi−μ)2/N  
    Where
    - σ is the standard deviation.
    - ∑ is the summation symbol, indicating that the expression that follows should be summed over all data points.
    - xi, this represents the i-th data point in the dataset.
    - μ\mu, this represents the mean(average) of all the data points in the dataset.
    - (xi−μ)2, this is the squared difference between each data point and the mean.
    - N is the total number of data points in the dataset.
 - **Interpretation**
    - A higher standard deviation indicates greater volatility.
    - Useful for identifying overbought/oversold conditions in markets.
 
 Key Features 
 
 Dynamic Linear Regression Channels: 
    
    The script automatically generates adaptive regression channels that expand or contract based on the current market volatility. This real-time adjustment ensures that traders are always working with the most relevant data, making it easier to spot key  support  and  resistance  levels.
    
    The  channel width  itself serves as an indicator of market volatility, expanding during periods of heightened uncertainty and contracting during more stable phases. Additionally, the channel width is  trained on previous channel widths , allowing the script to adapt and provide a more accurate view of volatility trends of the asset. Traders can also customize the script to  train on less historical data , enabling a more  recent view of volatility , which is particularly useful in fast-moving or changing markets.
 Dynamic Profits and Stops: 
    
     What is it? 
    
    Dynamic profit levels allow traders to adjust take-profit targets based on real-time market conditions. Unlike static levels, which remain fixed regardless of market changes, these adaptive levels leverage past volatility data to create more flexible profit-taking strategies.
    
     How does it work? 
    
    The script determines these levels using previously stored deviation values. These deviations are categorized into quantiles (like Q1, Q2, Q3, etc.) to classify current market conditions. As new deviation data is recorded, the profit levels are adjusted dynamically to reflect changes in market volatility. This approach helps to refine profit targets, especially when using regression channels with standard deviation rather than traditional ATR bands.
    
     Why is it valuable? 
    
    By utilizing adaptive profit levels, traders can optimize their exits based on the current volatility landscape. For instance, when volatility increases, the dynamic levels expand, allowing trades to capture larger price movements. Conversely, during low volatility, profit targets tighten to lock in gains sooner, reducing exposure to market reversals. This flexibility is especially beneficial when combined with adaptive regression channels that respond to changes in standard deviation.
  
 Slope-Based Trend Analysis: 
    
    One of the core elements of this script is the  slope of the regression line , which helps define the  direction  and  strength  of the trend. Positive slopes indicate bullish momentum, while negative slopes suggest bearish conditions. The  slope's steepness  gives traders insight into the market's momentum, allowing them to adjust their strategies based on the strength of the trend.
    
    Additionally, the script uses the slope to create a  color gradient , which visually represents the intensity of the market's momentum. The gradient peaks at one color to show the  maximum bullish momentum  experienced in the past, while another color represents the  maximum bearish momentum  experienced in the past. This color-coded visualization makes it easier for traders to quickly assess the market's strength and direction at a glance.
  
 Volatility Heatmap: 
    
    The integrated  heatmap  provides an intuitive, color-coded visualization of market volatility. The heatmap highlights areas where price action is expanding or contracting, giving traders a clear view of where volatility is rising or falling. By mapping out  deviations  from the regression line, the heatmap makes it easier to spot periods of  high volatility  that could lead to major market moves or potential reversals.
  
 Deviation Concepts: 
    
    The script tracks price  deviations  from the regression line when a new range is formed, providing valuable insights when the price significantly deviates from the expected trend. These deviations are key in identifying potential  breakout points  or  trend shifts .
    
    This helps traders understand when the market is overextended or when a pullback may be imminent, allowing them to make more informed trading decisions.
  
 Adaptive Model Properties: 
    
    Unlike static indicators, this script  adapts over time . As the market changes, it stores historical data related to  channel widths ,  slope dynamics , and  volatility levels , adjusting its analysis accordingly to stay relevant to current market conditions.
    
    Traders have the  ability to train the model on all available data  or specify a set number of bars to focus on more recent market activity. This flexibility allows for more  tailored analysis , ensuring that traders can work with data that best fits their trading style and time horizon.
    
    This continuous learning approach ensures that traders always have the most up-to-date insight into the market's structure.
  
 Table 
    
    The table displays key metrics in real time to provide deeper insights into market behavior:
  
    1.  Deviation & Slope : Shows the current deviation if set to standard deviation or atr if set to atr(values used to calculated the channel widths) and the trend slope, helping to gauge market volatility and trend direction.
    2.  Rate of Change : For both deviation/atr and slope, the table also calculates the rate of change of their rates—essentially capturing the acceleration or deceleration of trends and volatility. This helps identify shifts in market momentum early.
    3.  R-squared : Indicates the strength and reliability of the trend fit. A higher value means the regression line better explains the price movements.
    4.  Quantiles : Uses historical deviation data to categorize current market conditions into quartiles (e.g., Q1, Q2, Q3). This helps classify the market's current volatility level, allowing traders to adjust strategies dynamically.
    
    By combining these metrics, the table offers a comprehensive, real-time snapshot of market conditions, enabling more informed and adaptive trading decisions.
 
 Settings 
Here’s a breakdown of the script's settings for easy reference:
 Linear Regression Settings 
 
 Show Dynamic Levels :Toggle to display dynamic profit levels on the chart.
 Deviation Type :Select the method for calculating deviation—options include ATR (Average True Range) or Standard Deviation.
 Timeframe :Sets the specific timeframe for the regression analysis (default is the chart’s timeframe).
 Period :Defines the number of bars used for calculating the regression line (e.g., 50 bars).
 Deviation Multiplier :Multiplier used to adjust the width of the deviation channel around the regression line.
 Rate of Change :Sets the period for calculating the rate of change of the slope (used for momentum analysis).
 Max Bars Back :Limits the number of historical bars to analyze (0 means all available data).
 Slope Lookback :Number of bars used to calculate the slope gradient for trend detection.
 Slope Gradient Display :Toggle to enable gradient coloring based on slope direction.
 Slope Gradient Colors :Set colors for positive and negative slopes, respectively.
 Slope Fill :Adjusts the transparency of the slope gradient fill.
 Volatility Gradient Display :Toggle to enable gradient coloring based on volatility levels.
 Volatility Gradient Colors :Set colors for low and high volatility, respectively.
 Volatility Fill :Adjusts the transparency of the volatility gradient fill.
 
 Table Settings 
 
 Show Table :Toggle to display the metrics table on the chart.
 Table Position :Choose where to position the table (e.g., top-right, middle-center, etc.).
 Font Size :Set the size of the text in the table. Options include Tiny, Small, Normal, Large, and Huge.
 
  
AutoCorrelation Test [OmegaTools]Overview 
The AutoCorrelation Test indicator is designed to analyze the correlation patterns of a financial asset over a specified period. This tool can help traders identify potential predictive patterns by measuring the relationship between sequential returns, effectively assessing the autocorrelation of price movements.
Autocorrelation analysis is useful in identifying the consistency of directional trends (upward or downward) and potential cyclical behavior. This indicator provides an insight into whether recent price movements are likely to continue in a similar direction (positive correlation) or reverse (negative correlation).
 Key Features 
Multi-Period Autocorrelation: The indicator calculates autocorrelation across three periods, offering a granular view of price movement consistency over time.
Customizable Length & Sensitivity: Adjustable parameters allow users to tailor the length of analysis and sensitivity for detecting correlation.
Visual Aids: Three separate autocorrelation plots are displayed, along with an average correlation line. Dotted horizontal lines mark the thresholds for positive and negative correlation, helping users quickly assess potential trend continuation or reversal.
Interpretive Table: A table summarizing correlation status for each period helps traders make quick, informed decisions without needing to interpret the plot details directly.
 Parameters 
Source: Defines the price source (default: close) for calculating autocorrelation.
Length: Sets the analysis period, ranging from 10 to 2000 (default: 200).
Sensitivity: Adjusts the threshold sensitivity for defining correlation as positive or negative (default: 2.5).
 Interpretation 
Above 50 + Sensitivity: Indicates Positive Correlation. The price movements over the selected period are likely to continue in the same direction, potentially signaling a trend continuation.
Below 50 - Sensitivity: Indicates Negative Correlation. The price movements show a likelihood of reversing, which could signal an upcoming trend reversal.
Between 50 ± Sensitivity: Indicates No Correlation. Price movements are less predictable in direction, with no clear trend continuation or reversal tendency.
How It Works
The indicator calculates the logarithmic returns of the selected source price over each length period.
It then compares returns over consecutive periods, categorizing them as either "winning" (consistent direction) or "losing" (inconsistent direction) movements.
The result for each period is displayed as a percentage, with values above 50% indicating a higher degree of directional consistency (positive or negative).
A table updates with descriptive labels (Positive Correlation, Negative Correlation, No Correlation) for each tested period, providing a quick overview.
Visual Elements
 Plots: 
AutoCorrelation Test  : Displays autocorrelation for the closest period (lag 1).
AutoCorrelation Test  : Displays autocorrelation for the second period (lag 2).
AutoCorrelation Test  : Displays autocorrelation for the third period (lag 3).
Average: Displays the simple moving average of the three test periods for a smoothed view of overall correlation trends.
Horizontal Lines:
No Correlation (50%): A baseline indicating neutral correlation.
Positive/Negative Correlation Thresholds: Dotted lines set at 50 ± Sensitivity, marking the thresholds for significant correlation.
 Usage Guide 
Adjust Parameters:
Select the Source to define which price metric (e.g., close, open) will be analyzed.
Set the Length based on your preferred analysis window (e.g., shorter for intraday trends, longer for swing trading).
Modify Sensitivity to fine-tune the thresholds based on market volatility and personal trading preference.
Interpret Table and Plots:
Use the table to quickly check the correlation status of each lag period.
Analyze the plots for changes in correlation. If multiple lags show positive correlation above the sensitivity threshold, a trend continuation may be expected. Conversely, negative values suggest a potential reversal.
Integrate with Other Indicators:
For enhanced insights, consider using the AutoCorrelation Test indicator in conjunction with other trend or momentum indicators.
This indicator offers a powerful method to assess market conditions, identify potential trend continuations or reversals, and better inform trading decisions. Its customization options provide flexibility for various trading styles and timeframes.
Weekly High/Low Day BreakdownThe "Weekly High/Low Day Breakdown" is a tool designed to help identify patterns in market behaviour by analysing the days of the week when weekly highs and lows occur. This indicator calculates the frequency and percentage of weekly highs and lows for each day from Monday to Sunday within the visible range of your chart.
Features:
 
 Weekly Analysis: Calculates weekly highs and lows based on daily open high and low prices from Monday to Sunday.
 Day-Specific Breakdown: Tracks which day of the week each weekly high and low occurred.
 Visible Range Focus: Only considers data within the current visible range of your chart for precise analysis.
 Interactive Table Display: Presents the results in an easy-to-read table directly on your chart.
 
How It Works:
 
 Data Collection: Fetches daily high, low, day of the week, and time data regardless of your chart's timeframe.  Uses these daily figures to determine the weekly high and low for each week.
 Weekly Tracking: Monitors the day of the week when the weekly high and low prices occur. Resets tracking at the end of each week (Sunday).
 Visible Range Analysis: Only includes weeks that fall entirely within the visible time range of your chart. Ensures that the analysis is relevant to the period you are focusing on.
 Percentage Calculation: Counts the occurrences of weekly highs and lows for each day. Calculates the percentage based on the total number of weeks in the visible range.
 Result Display: Generates a table with days of the week as columns and "Weekly High" and "Weekly Low" as rows. Displays the percentage values, indicating how often highs and lows occur on each day.
 
How to Use:
 
 Add the Indicator: Apply the "Weekly High/Low Day Breakdown" indicator to your TradingView chart.
 Adjust Visible Range: Zoom in or out to set the desired visible time range for your analysis.
 
Interpret the Table: 
 
 Columns: Represent days from Monday to Sunday. 
 "Weekly High" Row: Shows the percentage of times the weekly high occurred on each day. "Weekly Low" Row: Shows the percentage of times the weekly low occurred on each day.
 Colors: Blue text indicates high percentages, red text indicates low percentages.
 
Example Interpretation:
If the table shows a 30% value under "Tuesday" for "Weekly High," it means that in 30% of the weeks within the visible range, the highest price of the week occurred on a Tuesday.
Similarly, a 40% value under "Friday" for "Weekly Low" indicates that 40% of the weekly lows happened on a Friday.
Zero Lag Trend Signals (MTF) [AlgoAlpha]Zero Lag Trend Signals   🚀📈 
Ready to take your trend-following strategy to the next level? Say hello to  Zero Lag Trend Signals , a precision-engineered Pine Script™ indicator designed to eliminate lag and provide rapid trend insights across multiple timeframes. 💡 This tool blends zero-lag EMA (ZLEMA) logic with volatility bands, trend-shift markers, and dynamic alerts. The result? Timely signals with minimal noise for clearer decision-making, whether you're trading intraday or on longer horizons. 🔄 
 
 🟢  Zero-Lag Trend Detection : Uses a zero-lag EMA (ZLEMA) to smooth price data while minimizing delay. 
 ⚡  Multi-Timeframe Signals : Displays trends across up to 5 timeframes (from 5 minutes to daily) on a sleek table.
 📊  Volatility-Based Bands : Adaptive upper and lower bands, helping you identify trend reversals with reduced false signals.
 🔔  Custom Alerts : Get notified of key trend changes instantly with built-in alert conditions.
 🎨  Color-Coded Visualization : Bullish and bearish signals pop with clear color coding, ensuring easy chart reading.
 ⚙️  Fully Configurable : Modify EMA length, band multiplier, colors, and timeframe settings to suit your strategy.
   
 How to Use 📚   
 
  ⭐ Add the Indicator : Add the indicator to favorites by pressing the star icon. Set your preferred EMA length and band multiplier. Choose your desired timeframes for multi-frame trend monitoring.  
  
  💻 Watch the Table & Chart : The top-right table dynamically updates with bullish or bearish signals across multiple timeframes. Colored arrows on the chart indicate potential entry points when the price crosses the ZLEMA with confirmation from volatility bands.  
  
  
  🔔 Enable Alerts : Configure alerts for real-time notifications when trends shift—no need to monitor charts constantly.
  
   
 How It Works 🧠   
The script calculates the  zero-lag EMA (ZLEMA)  by compensating for data lag, giving traders more responsive moving averages. It checks for volatility shifts using the Average True Range (ATR), multiplied to create upper and lower deviation bands. If the price crosses above or below these bands, it marks the start of new trends. Additionally, the indicator aggregates trend data from up to five configurable timeframes and displays them in a neat summary table. This helps you confirm trends across different intervals—ideal for multi-timeframe analysis. The visual signals include upward and downward arrows on the chart, denoting potential entries or exits when trends align across timeframes. Traders can use these cues to make well-timed trades and avoid lag-related pitfalls. 
Volume Insignts AnalyzerDescription: 
The Volume Insight Analyzer is an advanced Pine Script designed for traders who want a comprehensive view of volume dynamics on their charts. This script combines multiple volume-based indicators to help identify key trading opportunities, including significant volume days, volume dry-ups, and pocket pivots.
 Key Features: 
 
 VDU (Volume Dry-Up) Detection: Automatically identifies and marks days when the volume is significantly below its moving average, helping to spot potential breakout or breakdown points. Customizable volume thresholds allow for tailored analysis based on your trading strategy. The Volume Dry-Up label appears when the volume is substantially below its average level and the price is near a key moving average. This condition indicates a period of equilibrium between supply and demand, suggesting a potential low-risk entry point for traders.
 Pocket Pivot Analysis using 5 and 10 Length Pocket Pivots: Highlights days with exceptionally high volume compared to recent history, indicating potential pocket pivots. Visual markers on the chart and volume bars color-coded for 5 and 10-day lengths. Pocket pivot points are identified when the volume on a given day exceeds the maximum volume observed over the past several days. Specifically, a 5-day pocket pivot point is marked when today's volume surpasses the highest selling volume of the last 5 days. A cluster of 5-day pocket pivot points within a base is a strong indicator of stock strength. Similarly, a 10-day pocket pivot point following a Volume Dry-Up (VDU) suggests a potential entry opportunity. Moreover, a pre-existing cluster of 5-day pocket pivot points before a 10-day pocket pivot point provides greater conviction in the trade.
 Volume Moving Averages: Set different lengths for primary and secondary moving averages to track volume trends over daily, weekly, and monthly timeframes. Options to display moving average lines on the volume chart.
 Volume Visualization:
a. Major and Minor Volume Bars: Option to display bars that are either above or below average volume levels. Adjustable settings to show or hide these bars based on user preference.
b. Volume Bar Coloring: Volume bars are color-coded based on significant volume thresholds, including green for bullish signals, red for bearish signals, and orange for volume dry-ups.
  Volume Metrics Table: A customizable table that displays real-time volume metrics including Relative Volume (RVOL), Turnover, and the number of high volume days. The table can be oriented horizontally or vertically and styled according to your theme preferences.
 Visual Indicators:
a) Volume Dry-Up (VDU) Labels: Clearly marked VDU events with textual annotations on the chart.
b) Bullish and Bearish Arrows: Arrows indicating potential bullish or bearish closes based on volume analysis, enhancing decision-making.
 Customization Options:
a) Dark and Light Theme Support: Toggle between dark and light themes to match your chart settings.
b) Adjustable Parameters: Easily configure input settings such as volume thresholds, MA lengths, and table display options to fit your trading style.
 
 How to Use: 
 
 Set Parameters: Adjust the script settings such as volume thresholds, moving average lengths, and display preferences according to your analysis needs.
 Analyze Volume Patterns: Use the indicators and visual markers provided by the script to identify significant volume patterns and potential trading signals.
 Monitor Metrics: Refer to the volume metrics table for a quick overview of key volume-related statistics and trends.
 Make Informed Decisions: Utilize the visual cues and volume data provided by the script to enhance your trading strategy and make more informed decisions.
 
 Disclaimer: 
This script is for informational purposes only and should not be considered as trading advice. Use it in conjunction with other analysis tools and consult with a financial advisor if needed. Trading involves risk, and past performance does not guarantee future results.
Stock WatchOverview 
Watch list are very common in trading, but most of them simply provide the means of tracking a list of symbols and their current price.  Then, you click through the list and perform some additional analysis individually from a chart setup.  What this indicator is designed to do is provide a watch list that employs a high/low price range analysis in a table view across multiple time ranges for a much faster analysis of the symbols you are watching.
 Discussion 
The concept of this Stock Watch indicator is best understood when you think in terms of a 52 Week Range indication on many financial web sites.  Taken a given symbol, what is the high and the low over a 52 week range and then determine where current price is within that range from a percentage perspective between 0% and 100%.
With this concept in mind, let's see how this Stock Watch indicator is meant to benefit.
There are four different H/L ranges relative to the chart's setting and a Scope property. Let's use a three month (3M) chart as our example and set the indicator's Scope = 4.  A 3M  chart provides three months of data in a single candle, now when we set the Scope = 4 we are stating that 1X is going to look over four candles for the high/low range.  
The Scope property is used to determine how many candles it is to scan to determine the high/low range for the corresponding 1X, 3X, 5X and 10X periods.  This is how different time ranges are put into perspective.  Using a 3M chart with Scope = 4 would represent the following time windows:
- 1X = 3M * 4 is a 12 Months or 1 Year High/Low Range
- 3X = 3M * 4 * 3 is a 36 Months or 3 Years High/Low Range
- 5X = 3M * 4 * 5 is a 60 Months or 5 Years High/Low Range
- 10X = 3M * 4 * 10 is a 120 Months or 10 Years High/Low Range.
With these calculations, the indicator then determines where current price is within each of these High/Low ranges from a percentage perspective between 0% and 100%.  
Once the 0% to 100% value is calculated, it then will shade the value according to a color gradient from red to green (or any other two colors you set the indictor to).  This color shading really helps to interpret current price quickly.
The greater power to this range and color shading comes when you are able to see where price is according to price history across the multiple time windows.  In this example, there is quick analysis across 1 Year, 3 Year, 5 Year and 10 Year windows. 
Now let's further improve this quick analysis over 15 different stocks for which the indicator allows you to watch up to at any one time.
For value traders this is huge, because we're always looking for the bargains and we wait for price to be in the value range.  Using this indicator helps to instantly see if price has entered a value range before we decide to do further analysis with other charting and fundamental tools.
 The Code 
The heart of all this is really very simple as you can see in the following code snippet.  We're simply looking for the highest high and lowest low across the different scopes and calculating the percentage of the range where current price is for each symbol being watched.
     scope = baseScope
    watch1X = math.round(((watchClose - ta.lowest(watchLow, scope)) / (ta.highest(watchHigh, scope) - ta.lowest(watchLow, scope))) * 100, 0)
    table.cell(tblWatch, columnId, 2, str.format("{0, number, #}%", watch1X), text_size = size.small, text_color = colorText, bgcolor = getBackColor(watch1X)) 
    //3X Lookback
    scope := baseScope * 3
    watch3X = math.round(((watchClose - ta.lowest(watchLow, scope)) / (ta.highest(watchHigh, scope) - ta.lowest(watchLow, scope))) * 100, 0)
    table.cell(tblWatch, columnId, 3, str.format("{0, number, #}%", watch3X), text_size = size.small, text_color = colorText, bgcolor = getBackColor(watch3X))  
 Conclusion 
The example I've laid out here are for large time windows, because I'm a long term investor.  However, keep in mind that this can work on any chart setting, you just need to remember that your chart's time period and scope work together to determine what 1X, 3X, 5X and 10X represent.
Let me try and give you one last scenario on this.  Consider your chart is set for a 60 minute chart, meaning each candle represents 60 minutes of time and you set the Stock Watch indicator to a scope = 4.  These settings would now represent the following and you would be watching up to 15 different stocks across these windows at one time.
1X = 60 minutes * 4 is 240 minutes or 4 hours of time.
3X = 60 minutes * 4 * 3 = 720 minutes or 12 hours of time.
5X = 60 minutes * 4 * 5 = 1200 minutes or 20 hours of time.
10X = 60 minutes * 4 * 10 = 2400 minutes or 40 hours of time.
I hope you find value in my contribution to the cause of trading, and if you have any comments or critiques, I would love to here from you in the comments.
Time-itTime-it = Time based indicator
The Time-it indicator parses data by the day of week. Every tradeable instrument has its own personality. Some are more volatile on Mondays, and some are more bullish / bearish on Fridays or any day in between. The key metrics Time-it parses is range, open, high, low, close and +volume-.
The Time-it parsed data is printed in a table format. The table, position, size & color and text color & size can be changed to your preference. Each column parsed data is the last 10 which is numbered 0-9 which refers to the number of the selected day bars ago. For example: if Monday is chosen, 0 is the last closed Monday bar and 9 is the last closed Monday 9 Monday bars ago.
Range = measures the range between high and low for the day.
Open = is the opening price for the day.
High = is the high price for the day.
Low = is the low price for the day.
Close = is the closing price for the day.
+volume- = is the positive or negative volume for the day.
Default settings:
*Represents a how to use tooltip*
Source = ohlc4
* The source used for MA
MA length = 20
* The moving average used
Day bar color on / off
* checked on / unchecked off
Monday = blue
Tuesday = yellow
Wednesday = purple
Thursday = orange
Friday = white
Saturday = red
Sunday = green
Day M, T, W, TH, F, ST, SN.
* Parsed data for the day of week tables
Table, position, size & color:
Top, middle, bottom, left, center, right
* Table position on the chart.
Frame width & border width = 1
Text color and text size
Border color and frame color
Decimal place = 0
* example: use 0 for a round number, use 4 for Forex
*** The Time-it indicator uses parts and/or pieces of code from "Tradingview Up/Down Volume" and "Tradingview Financials on Chart". 






















